<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //函数返回值return
        //例子1
        function getsum() {
            return 666;
        }
        getsum();
        //getsum()=666
        console.log(getsum());

        //例子2
        function cook(aru) {
            return aru;
        }
        console.log(cook('大肘子'));

        //例子3
        function getsum1(a, b) {
            return a + b;
        }
        console.log(getsum1(1, 2));


    </script>
</head>

<body>

</body>

</html>